package operate

type opts map[string]string

//Option 配置选项
type Option func(opts)

//WithObject1 增加第一个扩展字段
func WithObject1(no string) Option {
	return func(o opts) {
		o["object_no1"] = no
	}
}

//WithObject2 增加第二个扩展字段
func WithObject2(no string) Option {
	return func(o opts) {
		o["object_no2"] = no
	}
}

//WithNotContainBody 不包含request body
func WithNotContainBody() Option {
	return func(o opts) {
		o["not_contain_body"] = "true"
	}
}
